const conn = require("./config")


function exec(sql,params){
    return new Promise((resolve,reject)=>{
        conn.query(sql,params,(err,result)=>{
            if(err) reject(err)
            resolve(result)
        })
    })
}

module.exports = exec